package com.wanho.qz103.hrsaas.sys.service;

import com.wanho.qz103.hrsaas.commons.exception.ServiceException;
import com.wanho.qz103.hrsaas.sys.pojos.Department;
import com.wanho.qz103.hrsaas.sys.vo.DepartmentVO;

public interface DepartmentService {
    boolean remove(String id) throws ServiceException ;

    boolean modify(Department department) throws ServiceException;

    /**
     * 根据 id 查询
     * @param id
     * @return
     * @throws ServiceException
     */
    Department findById(String id) throws ServiceException ;

    /**
     * 查询所有部门信息
     * @return
     * @throws ServiceException
     */
    DepartmentVO list() throws ServiceException ;

    boolean save(Department department) throws ServiceException ;
}
